import request from '@/utils/request'

// 查询可服务司机设置列表
export function listServability(query) {
  return request({
    url: '/vehicle/servability/list',
    method: 'get',
    params: query
  })
}

// 查询可服务司机设置详细
export function getServability(servabilityId) {
  return request({
    url: '/vehicle/servability/' + servabilityId,
    method: 'get'
  })
}

// 新增可服务司机设置
export function addServability(data) {
  return request({
    url: '/vehicle/servability',
    method: 'post',
    data: data
  })
}

// 修改可服务司机设置
export function updateServability(data) {
  return request({
    url: '/vehicle/servability',
    method: 'put',
    data: data
  })
}

// 删除可服务司机设置
export function delServability(servabilityId) {
  return request({
    url: '/vehicle/servability/' + servabilityId,
    method: 'delete'
  })
}
